<template>
  <div class="app-container">
    <div class="app-main">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="任务单业绩数量榜单" name="first"></el-tab-pane>
        <el-tab-pane label="荣誉等级" name="second"></el-tab-pane>
      </el-tabs>
      <taskList v-if="activeName == 'first'"></taskList>
      <honorLevel v-if="activeName == 'second'"></honorLevel>
    </div>
  </div>
</template>

<script>
import taskList from './components/taskList'
import honorLevel from './components/honorLevel'
export default {
    name:'ranking',
    components: {
        taskList,
        honorLevel
    },
    data(){
        return {
            activeName: "first",
        }
    },
    methods: {
         handleClick(tab, event) {
        console.log(tab, event);
      },
    }

}
</script>

<style lang="scss" scoped>
.app-main {
  background-color: #fff;
  // padding: 15px 20px;
  border-radius: 8px;
}
</style>